package cn.itsource.crm.service.impl;



import cn.itsource.basic.service.impl.BaseServiceImpl;
import cn.itsource.crm.domain.Dict;
import cn.itsource.crm.domain.DictInfo;
import cn.itsource.crm.mapper.DictInfoMapper;
import cn.itsource.crm.mapper.DictMapper;
import cn.itsource.crm.service.IDictService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;
import java.util.Objects;

@Service
public class DictServiceImpl extends BaseServiceImpl<Dict> implements IDictService {

    @Autowired
    private DictInfoMapper dictInfoMapper;
    @Autowired
    private DictMapper dictMapper;

    @Override
    public void delete(Long id) {
        dictInfoMapper.deleteByDictID(id);
        dictMapper.delete(id);
    }
}
